package com.ehome.poct.base.controller.device;

import com.ehome.poct.base.api.dto.device.TestDeviceQrcodePrintHisHeadDTO;
import com.ehome.poct.base.api.virtual.TestDeviceQrcodePrintHisHeadService;
import com.ehome.poct.base.api.vo.device.QrcodePrintHisPageVO;
import com.ehome.web.controller.AbstractBaseController;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 扫码打印头表控制器
 *
 * @author ehome
 * @Date 2022-07-14 15:52
 */
@Slf4j
@Api(tags = "扫码打印头表")
@RestController
@RequestMapping("/qrcodeprinthis")
public class TestDeviceQrcodePrintHisHeadController extends AbstractBaseController<QrcodePrintHisPageVO, TestDeviceQrcodePrintHisHeadDTO> {

    @Autowired
    private TestDeviceQrcodePrintHisHeadService qrcodePrintHisHeadService;
    @ApiOperation("增加打印记录")
    @ApiOperationSupport(author = "cq")
    @GetMapping("/getlist/{pageIndex}/{pageSize}")
    public QrcodePrintHisPageVO getlist(@PathVariable Integer pageIndex,@PathVariable Integer pageSize)
    {
        return qrcodePrintHisHeadService.getList(pageIndex,pageSize);
    }
}
